package Listener.observer;


public class Display implements Observer{
    private double result;

    @Override
    public void update(double result) {
        this.result = result;
        display();
    }

    public void display() {
        System.out.println("Result: " + result);
    }
}
